const {spawn} = require("child_process");

var showChild = spawn("node",["exec-child.js"]);

showChild.stdout.on("data",(chunk) => {
    //以流的方式进行数据接收
    console.log(chunk);
})